package order

import (
	"crmeb-common/global"
	"math/big"
)

// RefundOrderInfo 退款订单详情表
type RefundOrderInfo struct {
	global.BaseModel
	RefundOrderNo string `json:"refundOrderNo" gorm:"column=refund_order_no;comment:退款订单号"`

	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户ID"`

	OrderDetailId int32 `json:"orderDetailId" gorm:"column=order_detail_id;comment:订单商品表ID"`

	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品ID"`

	ProductName string `json:"productName" gorm:"column=product_name;comment:商品名称"`

	Image string `json:"image" gorm:"column=image;comment:商品图片"`

	AttrValueId int32 `json:"attrValueId" gorm:"column=attr_value_id;comment:商品规格值 ID"`

	Sku string `json:"sku" gorm:"column=sku;comment:商品sku"`

	Price big.Float `json:"price" gorm:"column=price;comment:商品单价"`

	PayPrice big.Float `json:"payPrice" gorm:"column=pay_price;comment:支付金额"`

	PayNum int32 `json:"payNum" gorm:"column=pay_num;comment:购买数量"`

	ProductType int32 `json:"productType" gorm:"column=product_type;comment:商品类型:0-普通，1-秒杀，2-砍价，3-拼团，4-视频号"`

	ApplyRefundNum int32 `json:"applyRefundNum" gorm:"column=apply_refund_num;comment:申请退款数量"`

	RefundPrice big.Float `json:"refundPrice" gorm:"column=refund_price;comment:退款金额"`

	MerchantRefundPrice big.Float `json:"MerchantRefundPrice" gorm:"column=merchant_refund_price;comment:商家退款金额"`

	PlatformRefundPrice big.Float `json:"platformRefundPrice" gorm:"column=platform_refund_price;comment:平台退款金额"`

	RefundUseIntegral int32 `json:"refundUseIntegral" gorm:"column=refund_use_integral;comment:退还使用积分"`

	RefundIntegralPrice big.Float `json:"refundIntegralPrice" gorm:"column=refund_integral_price;comment:退款积分抵扣金额"`

	RefundGainIntegral int32 `json:"refundGainIntegral" gorm:"column=refund_gain_integral;comment:扣除赠送积分"`

	RefundFirstBrokerageFee big.Float `json:"refundFirstBrokerageFee" gorm:"column=refund_first_brokerage_fee;comment:退一级返佣金额"`

	RefundSecondBrokerageFee big.Float `json:"refundSecondBrokerageFee" gorm:"column=refund_second_brokerage_fee;comment:退二级返佣金额"`

	RefundPlatCouponPrice big.Float `json:"refundPlatCouponPrice" gorm:"column=refund_plat_coupon_price;comment:退还平台优惠券补贴金额"`

	RefundFreightFee big.Float `json:"refundFreightFee" gorm:"column=refund_freight_fee;comment:退运费金额"`
}
